﻿using Common.Contract;
using System;
using System.ServiceModel;

namespace Authentication.Web.Service
{
    [ServiceContract]
    public interface IAuthenticationService
    {
        [OperationContract]
        bool CheckLogin(UserRecord userRecord);

        [OperationContract]
        UserRecord RetrieveUser( Guid applicationKey, string username);

        [OperationContract]
        UserRecord RetrieveEmail(Guid applicationKey, string email);

        [OperationContract]
        bool RegisterUser(UserRecord userRecord);
    }
}
